package com.ybkj.daijia.chart;

import java.io.Serializable;
import java.math.BigDecimal;

public class HourChart implements Serializable {


    /**
     *
     */
    private static final long serialVersionUID = -3263798500930286844L;

    private int hour;

    private long totalSuccess;

    private long totalCancel;

    private BigDecimal totalPrice;

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public long getTotalSuccess() {
        return totalSuccess;
    }

    public void setTotalSuccess(long totalSuccess) {
        this.totalSuccess = totalSuccess;
    }

    public long getTotalCancel() {
        return totalCancel;
    }

    public void setTotalCancel(long totalCancel) {
        this.totalCancel = totalCancel;
    }

    public BigDecimal getTotalPrice() {
        if (totalPrice == null) {
            return BigDecimal.ZERO;
        }
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }


}
